package com.zero.yygh.hosp.repository;

import com.zero.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author zero
 * @desc 科室数据管理
 * @create 2021/3/27
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {

    /**
     * 根据医院编号和科室编号查询科室信息
     * @author zero
     * @date 2021/3/27 20:47
     * @param hoscode 医院编号
     * @param depcode 科室编号
     * @return com.zero.yygh.model.hosp.Department
     */
    Department getDepartmentByHoscodeAndDepcode (String hoscode, String depcode);
}
